            <div class="l-bd-right">
              <div class="l-right">
                <div class="cell1">
                  <div class="cell1-top c">
                    <div class="lf">
                      <span>编辑推荐咨讯</span>
                    </div>
                    <div class="rg">
                      <span>换一批</span>
                      <img src="images/l-img5.jpg" alt="">
                    </div>
                  </div>
                  <div class="cell1-content">
				  <?php
						$news_sql = "select * from kboy_news where news_bigclass in(5,6,7,8,9,61,62,63,64) and news_tui=1 order by news_top desc,news_order desc, id desc limit 6";
						$news_rows = mysql_query($news_sql);
						while($news_rs = mysql_fetch_array($news_rows)){
				  ?>
						<div class="list c">
						  <div class="lf">
							<a href="newsview.php?newsid=<?=$news_rs['id']?>" target="_blank"><img src="<?=$news_rs['news_pic']?>" alt=""></a>
						  </div>
						  <div class="rg">
							<div class="p">
							  <p><a href="newsview.php?newsid=<?=$news_rs['id']?>" target="_blank"><?=getTitleStyle("kboy_news",$news_rs['id'],$news_rs['news_title'],25)?></a></p>
							</div>
							<span><?=$news_rs['news_addtime']?></span>
						  </div>
						</div>
				  <?php
						}
				  ?>
                  </div>
                </div>
                <div class="cell2">
                  <div class="cell2-top c">
                    <div class="lf">
                      <span>资讯点击排行</span>
                    </div>
                    <div class="rg">
                      <span class="l-information-lf">&lt</span>
                      <span class="l-information-rg on">&gt</span> 
                    </div>
                  </div>
                  <div class="cell2-content">
                    <ul>
				  <?php
						$news_sql = "select * from kboy_news where  news_bigclass in(5,6,7,8,9,61,62,63,64) order by news_hit desc, news_top desc,news_order desc, id desc limit 21";
						$news_rows = mysql_query($news_sql);
						$i = 1;
						while($news_rs = mysql_fetch_array($news_rows)){
				  ?>
                      <li><span></span><a href="newsview.php?newsid=<?=$news_rs['id']?>" target="_blank"><?=getTitleStyle("kboy_news",$news_rs['id'],$news_rs['news_title'],25)?></a></li>
				  <?php
							if($i % 7 == 0){
								echo "</ul></div><div class=\"cell2-content\" style=\"display: none\"><ul>";
							}
						$i ++ ;
				  		}
				  ?>
                    </ul>
                  </div>
                </div>
                <div class="cell3">
                  <div class="cell3-top c">
                    <div class="lf">
                      <span>本周热门活动</span>
                    </div>
                    <div class="rg">
                      <a href="#" title="">更多&gt&gt</a>
                    </div>
                  </div>
                  <div class="cell3-content">
				  <?php



										$date=date('Y-m-d');  //当前日期

										$first=1; //$first =1 表示每周星期一为开始日期 0表示每周日为开始日期

										$w=date('w',strtotime($date));  //获取当前周的第几天 周日是 0 周一到周六是 1 - 6 

										$now_start=date('Y-m-d',strtotime("$date -".($w ? $w - $first : 6).' days')); //获取本周开始日期，如果$w是0，则表示周日，减去 6 天

										$now_end=date('Y-m-d',strtotime("$now_start +6 days"));  //本周结束日期



										$news_sql = "select * from kboy_forum_active where date(active_end_time)>='$THIS_TODAY_DATE' and (date(active_start_time)>='$now_start' and date(active_start_time)<='$now_end') and active_model = 0 and active_state = 0 and active_bigclass=135 order by active_top desc,active_order desc, id desc limit 4";

										$news_rows = mysql_query($news_sql);

										while($news_rs = mysql_fetch_array($news_rows)){

								?>
					
					<div class="list c">
                      <div class="lf">
                        <a href="activeview.php?newsid=<?=$news_rs['id']?>" target="details-frame"><img src="<?php  
                                       			 $news_rss = explode(',',$news_rs['active_sollimg']);
												if($news_rss){
													echo $news_rss[0];
												}else{
													echo $news_rs['active_sollimg'];
												}
                                        ?>" alt=""></a>
                      </div>
                      <div class="rg">
                        <h2><a href="activeview.php?newsid=<?=$news_rs['id']?>" target="details-frame"><?=$news_rs['active_title']?></a></h2>
                        <p>活动地址：<?=$news_rs['active_end_prov']?><?=$news_rs['active_end_city']?> </p>
                        <span>活动时间：<?=date('y-m-d',strtotime($news_rs['active_start_time']))?></span>
                      </div>
                    </div>
				<?php
						$i ++ ;
						}
				?>
                    
                  </div>
                </div>
                <div class="cell4">
                  <div class="cell4-top c">
                    <div class="lf">
                      <span>社区热门帖子</span>
                    </div>
                    <div class="rg">
                      <a href="bbs.php" title="">更多&gt&gt</a> 
                    </div>
                  </div>
                  <div class="cell4-content">
                    <ul>
					<?php
								$news_sql = "select * from kboy_forum_travel order by travel_best desc limit 8";
								$news_rows = mysql_query($news_sql);
								while($news_rs = mysql_fetch_array($news_rows)){
						?>
						<li><span></span><a href="forum_travelview.php?newsid=<?=$news_rs['id']?>" target="details-frame"><?=$news_rs['travel_title']?></a></li>
						<?php
								}
						?>
                     
                    </ul>
                  </div>
                </div>
                <div class="cell5">
                  <div class="cell5-top c">
                    <div class="lf">
                      <span>热门足迹路线</span>
                    </div>
                    <div class="rg">
                      <a href="trailfoot.php" title="">更多&gt&gt</a> 
                    </div>
                  </div>
				  
					<?php
							$news_sql = "select * from kboy_trailfoot order by trailfoot_hit desc, id desc limit 1";
							$news_rows = mysql_query($news_sql);
							while($news_rs = mysql_fetch_array($news_rows)){
					?>
                  <div class="cell5-content">
                    <div class="top">
                      <a href="trailfootview.php?newsid=<?=$news_rs['id']?>" target="_blank"><?=$news_rs['trailfoot_title']?></a>
                      <p><?=$news_rs['trailfoot_line']?>  <?=$news_rs['trailfoot_allline']?></p>
                      <h3>
                        <span>海拔最低：<?=$news_rs['trailfoot_baltitude']?></span>
                        <span>最高：<?=$news_rs['trailfoot_taltitude']?></span>
                        <span>难度级别：<?=$news_rs['trailfoot_power']?></span>
                      </h3>
                    </div>
                    <div class="bottom">
                      <ul>
						<li><a href="trailfootview.php?newsid=<?=$news_rs['id']?>" target="_blank"><img src="<?=$news_rs['trailfoot_pic2']?>" alt=""></a></li>
						<li><a href="trailfootview.php?newsid=<?=$news_rs['id']?>" target="_blank"><img src="<?=$news_rs['trailfoot_pic3']?>" alt=""></a></li>
						<li><a href="trailfootview.php?newsid=<?=$news_rs['id']?>" target="_blank"><img src="<?=$news_rs['trailfoot_pic4']?>" alt=""></a></li>
                      </ul>
                    </div>
                  </div>
				  
				  <?php
				  		}
				  ?>
                </div>
                <div class="cell6">
                  <ul>
				  <?php
								$news_sql = "select * from kboy_piclink  where news_bigclass = 194 order by id desc ";
								$news_rows = mysql_query($news_sql);
								while($news_rs = mysql_fetch_array($news_rows)){
						?>
                    <li><a href="<?=$news_rs['news_tourls']?>" target="details-frame"><img src="<?=$news_rs['news_pic']?>" alt=""></a></li>
					 <?php
				  		}
				  ?>
                   
                  </ul>
                </div>
              </div>
            </div>
